import { defHttp } from "@/utils/http";
import { generalApi } from "./utils";

/** 获取省份 */
export const getListProvince = <T>(data?: object) => {
  return defHttp.post<T>({
    url: generalApi("/region/list/province"),
    data,
  });
};

/** 获取城市 */
export const getListCity = <T>(data?: object) => {
  return defHttp.post<T>({
    url: generalApi("/region/list/city"),
    data
  });
};

/** 获取城市地区 */
export const getListArea = <T>(data?: object) => {
  return defHttp.post<T>({
    url: generalApi("/region/list/area"),
    data
  });
};
